package com.education.wisdom.service;


import com.education.wisdom.pojo.UserCatalogBuy;

import java.util.List;
import java.util.Map;

/**
 * 用户购买课程 服务层
 *
 * @author ruoyi
 * @date 2019-05-27
 */
public interface IUserCatalogBuyService {

    UserCatalogBuy selectUserCatalogBuyByUserId(Map<String, Object> map);

    List<UserCatalogBuy> selectByUserId(Map<String, Object> hashmap);

    int addUserCatalogBuy(List<UserCatalogBuy> list);

    void insert(UserCatalogBuy userCatalogBuy);

    Integer[] selectCatalogIdByUserId(Integer userId);

    void deleteByUserId(String userId);

    /**
     * 专业课程体系下购买资源后同步到我的资源库
     * @param catalogId 今软资源库的关联目录id
     * @param userId 购买资源的老师id
     */
    void professionalCoursesSynchronousMineRes(Integer catalogId, String userId);
}
